package com.tron.dobest.java.trongenericity;

import com.tron.dobest.mybatisplus.entity.User;

import java.util.ArrayList;
import java.util.List;

public class Start {
    public static void main(String[] args) {
        List<User> string = getSomeThing("string");

        string.forEach(e->{
            System.out.println(e);
        });
    }

    static <T> List<T> getSomeThing(String s) {
        ArrayList<User> list = new ArrayList<>();
        User user = new User();
        user.setName("aaa");
        list.add(user);
        return (List<T>) list;
    }
}
